home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / E-G / Financial Portfolio v1.8.cpt / Financial Portfolio v1.8 / background_17929.xml < prev    next >
Extensible Markup Language  |  1991-09-30  |  12KB  |  303 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>17929</id>
  5.     <filler1>0</filler1>
  6.     <bitmap>BMAP_18461.pbm</bitmap>
  7.     <cantDelete> <true /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <link rel="stylesheet" type="text/css" href="stylesheet_3246.css" />
  11.     <part>
  12.         <id>1</id>
  13.         <type>button</type>
  14.         <visible> <true /> </visible>
  15.         <reserved5> 0 </reserved5>
  16.         <reserved4> 0 </reserved4>
  17.         <reserved3> 0 </reserved3>
  18.         <reserved2> 0 </reserved2>
  19.         <reserved1> 0 </reserved1>
  20.         <enabled> <true /> </enabled>
  21.         <rect>
  22.             <left>388</left>
  23.             <top>292</top>
  24.             <right>468</right>
  25.             <bottom>335</bottom>
  26.         </rect>
  27.         <style>roundrect</style>
  28.         <showName> <true /> </showName>
  29.         <highlight> <false /> </highlight>
  30.         <autoHighlight> <true /> </autoHighlight>
  31.         <sharedHighlight> <true /> </sharedHighlight>
  32.         <family>0</family>
  33.         <titleWidth>0</titleWidth>
  34.         <icon>0</icon>
  35.         <textAlign>center</textAlign>
  36.         <font>Chicago</font>
  37.         <textSize>12</textSize>
  38.         <textStyle>plain</textStyle>
  39.         <name>Okay</name>
  40.         <script>on mouseUpokayTotglobal origname,origvalue,origtotalput empty into orignameput empty into origvalueput empty into origtotalend mouseUp</script>
  41.     </part>
  42.     <part>
  43.         <id>2</id>
  44.         <type>field</type>
  45.         <visible> <true /> </visible>
  46.         <dontWrap> <false /> </dontWrap>
  47.         <dontSearch> <false /> </dontSearch>
  48.         <sharedText> <false /> </sharedText>
  49.         <fixedLineHeight> <false /> </fixedLineHeight>
  50.         <autoTab> <false /> </autoTab>
  51.         <lockText> <true /> </lockText>
  52.         <rect>
  53.             <left>106</left>
  54.             <top>13</top>
  55.             <right>436</right>
  56.             <bottom>38</bottom>
  57.         </rect>
  58.         <style>rectangle</style>
  59.         <autoSelect> <false /> </autoSelect>
  60.         <showLines> <false /> </showLines>
  61.         <wideMargins> <true /> </wideMargins>
  62.         <multipleLines> <false /> </multipleLines>
  63.         <reservedFamily> 0 </reservedFamily>
  64.         <titleWidth>0</titleWidth>
  65.         <icon>0</icon>
  66.         <textAlign>center</textAlign>
  67.         <font>Chicago</font>
  68.         <textSize>12</textSize>
  69.         <textStyle>plain</textStyle>
  70.         <textHeight>16</textHeight>
  71.         <name>title</name>
  72.         <script></script>
  73.     </part>
  74.     <part>
  75.         <id>3</id>
  76.         <type>field</type>
  77.         <visible> <true /> </visible>
  78.         <dontWrap> <false /> </dontWrap>
  79.         <dontSearch> <false /> </dontSearch>
  80.         <sharedText> <false /> </sharedText>
  81.         <fixedLineHeight> <false /> </fixedLineHeight>
  82.         <autoTab> <false /> </autoTab>
  83.         <lockText> <false /> </lockText>
  84.         <rect>
  85.             <left>106</left>
  86.             <top>56</top>
  87.             <right>338</right>
  88.             <bottom>211</bottom>
  89.         </rect>
  90.         <style>scrolling</style>
  91.         <autoSelect> <false /> </autoSelect>
  92.         <showLines> <false /> </showLines>
  93.         <wideMargins> <true /> </wideMargins>
  94.         <multipleLines> <false /> </multipleLines>
  95.         <reservedFamily> 0 </reservedFamily>
  96.         <titleWidth>0</titleWidth>
  97.         <icon>0</icon>
  98.         <textAlign>right</textAlign>
  99.         <font>Geneva</font>
  100.         <textSize>10</textSize>
  101.         <textStyle>extend</textStyle>
  102.         <textHeight>16</textHeight>
  103.         <name>name</name>
  104.         <script></script>
  105.     </part>
  106.     <part>
  107.         <id>4</id>
  108.         <type>field</type>
  109.         <visible> <true /> </visible>
  110.         <dontWrap> <false /> </dontWrap>
  111.         <dontSearch> <false /> </dontSearch>
  112.         <sharedText> <false /> </sharedText>
  113.         <fixedLineHeight> <false /> </fixedLineHeight>
  114.         <autoTab> <false /> </autoTab>
  115.         <lockText> <false /> </lockText>
  116.         <rect>
  117.             <left>321</left>
  118.             <top>56</top>
  119.             <right>452</right>
  120.             <bottom>211</bottom>
  121.         </rect>
  122.         <style>scrolling</style>
  123.         <autoSelect> <false /> </autoSelect>
  124.         <showLines> <false /> </showLines>
  125.         <wideMargins> <true /> </wideMargins>
  126.         <multipleLines> <false /> </multipleLines>
  127.         <reservedFamily> 0 </reservedFamily>
  128.         <titleWidth>0</titleWidth>
  129.         <icon>0</icon>
  130.         <textAlign>right</textAlign>
  131.         <font>Geneva</font>
  132.         <textSize>10</textSize>
  133.         <textStyle>extend</textStyle>
  134.         <textHeight>16</textHeight>
  135.         <name>value</name>
  136.         <script>on closeFieldremovestuffaddFieldend closeFieldon exitFieldremovestuffaddFieldend exitFieldon enterInFieldremovestuffaddFieldend enterInFieldon openFieldglobal SaveTextArrows-- allow arrowKey movement in fieldsput the textArrows into SaveTextArrows -- save current value of textArrowsif not SaveTextArrows then set textArrows to trueend openField</script>
  137.     </part>
  138.     <part>
  139.         <id>5</id>
  140.         <type>field</type>
  141.         <visible> <true /> </visible>
  142.         <dontWrap> <false /> </dontWrap>
  143.         <dontSearch> <false /> </dontSearch>
  144.         <sharedText> <false /> </sharedText>
  145.         <fixedLineHeight> <false /> </fixedLineHeight>
  146.         <autoTab> <false /> </autoTab>
  147.         <lockText> <true /> </lockText>
  148.         <rect>
  149.             <left>321</left>
  150.             <top>211</top>
  151.             <right>436</right>
  152.             <bottom>237</bottom>
  153.         </rect>
  154.         <style>rectangle</style>
  155.         <autoSelect> <false /> </autoSelect>
  156.         <showLines> <false /> </showLines>
  157.         <wideMargins> <true /> </wideMargins>
  158.         <multipleLines> <false /> </multipleLines>
  159.         <reservedFamily> 0 </reservedFamily>
  160.         <titleWidth>0</titleWidth>
  161.         <icon>0</icon>
  162.         <textAlign>right</textAlign>
  163.         <font>Chicago</font>
  164.         <textSize>12</textSize>
  165.         <textStyle>plain</textStyle>
  166.         <textHeight>16</textHeight>
  167.         <name>total</name>
  168.         <script></script>
  169.     </part>
  170.     <part>
  171.         <id>6</id>
  172.         <type>button</type>
  173.         <visible> <true /> </visible>
  174.         <reserved5> 0 </reserved5>
  175.         <reserved4> 0 </reserved4>
  176.         <reserved3> 0 </reserved3>
  177.         <reserved2> 0 </reserved2>
  178.         <reserved1> 0 </reserved1>
  179.         <enabled> <true /> </enabled>
  180.         <rect>
  181.             <left>268</left>
  182.             <top>305</top>
  183.             <right>335</right>
  184.             <bottom>323</bottom>
  185.         </rect>
  186.         <style>roundrect</style>
  187.         <showName> <true /> </showName>
  188.         <highlight> <false /> </highlight>
  189.         <autoHighlight> <true /> </autoHighlight>
  190.         <sharedHighlight> <true /> </sharedHighlight>
  191.         <family>0</family>
  192.         <titleWidth>0</titleWidth>
  193.         <icon>0</icon>
  194.         <textAlign>center</textAlign>
  195.         <font>Chicago</font>
  196.         <textSize>12</textSize>
  197.         <textStyle>plain</textStyle>
  198.         <name>cancel</name>
  199.         <script>on mouseUpsend mouseUp to bg field "help" -- to hide itglobal origname,origvalue,origtotalput origname into field "name"put origvalue into field "value"put origtotal into field "total"put empty into orignameput empty into origvalueput empty into origtotalvisual iris close fastset lockmessages to truego cd networthend mouseUp</script>
  200.     </part>
  201.     <part>
  202.         <id>7</id>
  203.         <type>button</type>
  204.         <visible> <true /> </visible>
  205.         <reserved5> 0 </reserved5>
  206.         <reserved4> 0 </reserved4>
  207.         <reserved3> 0 </reserved3>
  208.         <reserved2> 0 </reserved2>
  209.         <reserved1> 0 </reserved1>
  210.         <enabled> <true /> </enabled>
  211.         <rect>
  212.             <left>1</left>
  213.             <top>0</top>
  214.             <right>47</right>
  215.             <bottom>46</bottom>
  216.         </rect>
  217.         <style>transparent</style>
  218.         <showName> <true /> </showName>
  219.         <highlight> <true /> </highlight>
  220.         <autoHighlight> <false /> </autoHighlight>
  221.         <sharedHighlight> <true /> </sharedHighlight>
  222.         <family>0</family>
  223.         <titleWidth>0</titleWidth>
  224.         <icon>2507</icon>
  225.         <textAlign>center</textAlign>
  226.         <font>Chicago</font>
  227.         <textSize>12</textSize>
  228.         <textStyle>plain</textStyle>
  229.         <name>Help</name>
  230.         <script>on mouseUphelperend mouseUp</script>
  231.     </part>
  232.     <part>
  233.         <id>8</id>
  234.         <type>button</type>
  235.         <visible> <false /> </visible>
  236.         <reserved5> 0 </reserved5>
  237.         <reserved4> 0 </reserved4>
  238.         <reserved3> 0 </reserved3>
  239.         <reserved2> 0 </reserved2>
  240.         <reserved1> 0 </reserved1>
  241.         <enabled> <true /> </enabled>
  242.         <rect>
  243.             <left>62</left>
  244.             <top>92</top>
  245.             <right>505</right>
  246.             <bottom>200</bottom>
  247.         </rect>
  248.         <style>rectangle</style>
  249.         <showName> <false /> </showName>
  250.         <highlight> <true /> </highlight>
  251.         <autoHighlight> <false /> </autoHighlight>
  252.         <sharedHighlight> <true /> </sharedHighlight>
  253.         <family>0</family>
  254.         <titleWidth>0</titleWidth>
  255.         <icon>0</icon>
  256.         <textAlign>center</textAlign>
  257.         <font>Chicago</font>
  258.         <textSize>12</textSize>
  259.         <textStyle>plain</textStyle>
  260.         <name>helpc</name>
  261.         <script></script>
  262.     </part>
  263.     <part>
  264.         <id>9</id>
  265.         <type>field</type>
  266.         <visible> <false /> </visible>
  267.         <dontWrap> <false /> </dontWrap>
  268.         <dontSearch> <false /> </dontSearch>
  269.         <sharedText> <true /> </sharedText>
  270.         <fixedLineHeight> <true /> </fixedLineHeight>
  271.         <autoTab> <false /> </autoTab>
  272.         <lockText> <false /> </lockText>
  273.         <rect>
  274.             <left>66</left>
  275.             <top>96</top>
  276.             <right>501</right>
  277.             <bottom>195</bottom>
  278.         </rect>
  279.         <style>scrolling</style>
  280.         <autoSelect> <false /> </autoSelect>
  281.         <showLines> <false /> </showLines>
  282.         <wideMargins> <true /> </wideMargins>
  283.         <multipleLines> <false /> </multipleLines>
  284.         <reservedFamily> 0 </reservedFamily>
  285.         <titleWidth>0</titleWidth>
  286.         <icon>0</icon>
  287.         <textAlign>left</textAlign>
  288.         <font>Geneva</font>
  289.         <textSize>10</textSize>
  290.         <textStyle>extend</textStyle>
  291.         <textHeight>13</textHeight>
  292.         <name>help</name>
  293.         <script>on mouseUpif there is a bg button "Hide Help" then send mouseUp to bg button "Hide Help"if there is a cd button "Hide Help" then send mouseUp to cd button "Hide Help"end mouseUp</script>
  294.     </part>
  295.     <content>
  296.         <layer>background</layer>
  297.         <id>9</id>
  298.         <text>Here's where you can itemize those "little things" that make up your particular assets or liabilities. Click in the field on the left and type in your appropriate asset or liability, then click on the proper line on the field on the right to type in its value.  The program will automatically add commas and dollar signs where needed and show a total when you click "Okay".  You will then be brought back to the "Net Worth" card.</text>
  299.     </content>
  300.     <name>details</name>
  301.     <script>on openCard -- store original fields and values in globalsglobal origname,origvalue,origtotalput field "name" into orignameput field "value" into origvalueput field "total" into origtotalend openCardon idleset scroll of field name to scroll of field valueend idleon OkayTotremovestuffaddfieldreplacestuffput bg field "total" into totglobal liner2,typerif typer is "asset" thenput tot into line liner2 of bg field assetnum of cd "networth"elseput tot into line liner2 of bg field liabnum of cd "networth"end ifsend mouseUp to bg field "help" -- to hide itglobal creatingvisual iris close fastset lockmessages to truego cd networthend OkayToton addFieldif the target is empty then exit addFieldput 0 into total -- initialize the totalrepeat with lineNum = 1 to number of lines of bg field "value"put line lineNum of bg field "value" into theLine -- get contents of each lineif first char of theLine is "$" then put empty into first char of theLineif theLine is empty then next repeat-- don't want to add an existing 'total' lineif "Total" is in theLine then delete line lineNum of bg field "value" -- ‚àÜelse if theLine is not a number thenbeep-- select the whole offending line and exit:put (number of chars of line 1 to lineNum of bg field "value") + 1¬¨into endCharselect char (endChar - length(theLine)) to endChar of bg field "value"answer "This needs to be a real number."exit to HyperCard -- stop handlerselse add theLine to total -- keep a running totalend repeat-- display the totalput total into bg field "total" -- ‚àÜrestoreTextArrowsend addFieldon restoreTextArrowsglobal SaveTextArrowsif SaveTextArrows ‚↠empty thenset the textArrows to SaveTextArrows -- restore textArrowsput empty into SaveTextArrows -- clean upend ifend restoreTextArrowson removestuff -- remove commas & $ signsrepeat with y=1 to the number of lines in field "value"if line y of field "value" is empty then next repeat-- don't mess with lines only with return & otherwise emptyput line y of field "value" into ccput strip("$,",cc) into line y of field "value"end repeatend removestuffon replaceStuff -- add commas & $ signsrepeat with y=1 to the number of lines in field "value"if line y of field "value" is empty then next repeat-- don't mess with lines only with return & otherwise emptyput formatNum(line y of field "value",1) into line y of field "value"end repeatput formatNum(field "total",1) into field "total"end replacestuff</script>
  302. </background>
  303.